package com.person.mapper;

import com.person.pojo.AddressBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    void insertAddressbook(AddressBook addressBook);

    List<AddressBook> select(Long id);

    void setDefault(Long id);

    void closeDefault(Long userId);

    AddressBook selectAddress(Long id);

    void update(AddressBook addressBook);

    void delete(Long ids);

    AddressBook showDefaultAddress(Long userId);
}
